﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Vici.Mvc;
using Vici.CoolStorage;
using Ss.Model;
namespace SSO
{
    public class AddArticle : AdminController
    {
        [View("admin/Article/AddArticle")]
        [Url("admin/Article/AddArticle")]
        public void Run()
        {
        }
        [Url("admin/Article/AddArticle/do")]
        public void addArticle(string Title, string Intro, string Content, string Editer)
        {
            Article art = Article.New();
            art.Title = Title;
            art.Intro = Intro;
            art.Content = Content;
            art.Editer = Editer;
            art.CreateDate = DateTime.Now;
            art.Save();
        }
    }
}